package com.cyk.validation.model;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class UserInfo {

    @NotBlank
    private String username;
    @NotNull
    @Max(100)
    private Integer age;

}
